Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom domain support and use http(s) or not #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tzangms
Copy link

@tzangms tzangms commented Apr 30, 2014

By default, use S3 with https will get warning from browser.

@@ -33,7 +33,18 @@ module.exports.save = function(image) {

var targetDir = getTargetDir();
var targetFilename = getTargetName(image, targetDir);
var awsPath = 'https://' + config.bucket + '.s3.amazonaws.com/';

if (config.isSecure) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option should be reversed (noHttps? useHttp?) so the default is still https://

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original code is designed to use https, so I don't want to break it, so I just make isSecure option default false.

If someone upgrade to this plugin from original, they won't be break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants